class MyBaseException(Exception):
    code: int = 999
    message: str = "调用方法 [{}] 出现未知异常: {} !!!"

    def __init__(self, *args):
        if args:
            self.message = self.message.format(*args)
        super().__init__(self.code, self.message)

    @property
    def get_code(self) -> dict:
        return {"code": self.code, "message": self.message}
